package com.itany.mybatis.entity;

/**
 * Description: 类的描述
 * Author: liudaolin@itany.com
 * Date: 2021/07/19 15:59
 * Version: 1.0 版本信息
 */
public class Hero implements java.io.Serializable{
    private Integer id;
    private String name;
    private Integer typeId;

    // Hero与HeroType的关系
    private HeroType heroType;

    public Hero() {
    }

    public Hero(Integer id, String name, Integer typeId) {
        this.id = id;
        this.name = name;
        this.typeId = typeId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public HeroType getHeroType() {
        return heroType;
    }

    public void setHeroType(HeroType heroType) {
        this.heroType = heroType;
    }

    @Override
    public String toString() {
        return "Hero{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", typeId=" + typeId +
                ", heroType=" + heroType +
                '}';
    }
}
